<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

require('./core/common.inc.php');


$cls_weiboouth = new cls_WeiboOAuth($consumer_key, $consumer_secret);
$keys = $cls_weiboouth->getRequestToken();


$aurl = $cls_weiboouth->getAuthorizeURL( $keys['oauth_token'] ,false , $_SERVER['SCRIPT_URI'].'/callback.php');

echo "<a href='{$aurl}'></a>";